<html>
<head>
<!--Load the AJAX API-->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="ajile/com.iskitz.ajile.js?mvcoff,mvcshareoff,refresh"></script>
<script type="text/javascript" src="org.wattdepot.gdata.GDataLoader.js"></script>
<script type="text/javascript" src="org.wattdepot.gdata.kukuicup.Configuration.js"></script>

<script type="text/javascript">
  // Wrap this code in an anonymous self-invoking function to avoid polluting global namespace.
  (function() {
    // Get the kukui cup configuration file. 
    var configuration = new org.wattdepot.gdata.kukuicup.Configuration();
    // Get one spreadsheet URL
    var url1 = configuration.getCurrentPowerDataUrl();
    // How frequently we want this spreadsheet data to be refreshed in the visualization.
    var refreshInterval = 3600; 
    // Load the visualization API and the spreadsheet data, then call displayDormData.
    var loader = new org.wattdepot.gdata.GDataLoader(displayDormData, url1, refreshInterval);  
      
  // Show that data can be retrieved from the passed datatable.
  function displayDormData(datatable) {
    document.write("GDataLoader test 1. Data (0,0) is: " + datatable.getFormattedValue(0,0));
  }

})();
</script>
</head>

<body>
</body>
</html>


